<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Emulateur PROCSI:  Fichier source de /home/aboursie/workspace/emulator-procsi/src/pvm.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Emulateur PROCSI&#160;<span id="projectnumber">1</span></div>
   <div id="projectbrief">reproduction du fonctionnement de PROCSI en C</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Portée&#160;globale</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/aboursie/workspace/emulator-procsi/src/pvm.c</div>  </div>
</div>
<div class="contents">
<a href="pvm_8c.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &quot;<a class="code" href="pvm_8h.html">pvm.h</a>&quot;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include &quot;<a class="code" href="instructions_8h.html">instructions.h</a>&quot;</span>
<a name="l00003"></a>00003 
<a name="l00008"></a><a class="code" href="pvm_8h.html#a1b0875fb61cdafebccde8bebcb6d8f0f">00008</a> <a class="code" href="struct_p_v_m.html">PVM</a>* <a class="code" href="pvm_8c.html#a1b0875fb61cdafebccde8bebcb6d8f0f">newPVM</a>()
<a name="l00009"></a>00009 {
<a name="l00010"></a>00010         <span class="comment">// Allouer l&#39;espace nécessaire à la création d&#39;une PVM</span>
<a name="l00011"></a>00011         <span class="comment">//</span>
<a name="l00012"></a>00012         <a class="code" href="struct_p_v_m.html">PVM</a>* <a class="code" href="pvm_8c.html#a1b0875fb61cdafebccde8bebcb6d8f0f">newPVM</a> = malloc(<span class="keyword">sizeof</span>(<a class="code" href="struct_p_v_m.html">PVM</a>));
<a name="l00013"></a>00013 
<a name="l00014"></a>00014         newPVM-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a> = malloc(<span class="keyword">sizeof</span>(<a class="code" href="union_mot.html">Mot</a>)*<a class="code" href="pvm_8h.html#ad4661974a66daba2cf78a74dfbe67ebf">MEMSIZE</a>);
<a name="l00015"></a>00015 
<a name="l00016"></a>00016         newPVM-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a> = <a class="code" href="pvm_8h.html#a6939e2c647fb1606adbdbaf361cd6928">PC_START</a>;
<a name="l00017"></a>00017         newPVM-&gt;<a class="code" href="struct_p_v_m.html#a8eed1a2f252c69524a03e13d47bdd7ea">sp</a> = <a class="code" href="pvm_8h.html#ab07d36b74da4d8af253921d13246b4c6">SP_START</a>;
<a name="l00018"></a>00018         newPVM-&gt;<a class="code" href="struct_p_v_m.html#a4b94d3b0c007f78c25c791e6b506307c">sr</a> = <a class="code" href="pvm_8h.html#a9b7948c17d6b18be991aa3dfd80808c4">SR_START</a>;
<a name="l00019"></a>00019 
<a name="l00020"></a>00020         <span class="comment">//Verifier l&#39;incrémentation de la pile</span>
<a name="l00021"></a>00021         <span class="comment">//</span>
<a name="l00022"></a>00022         <span class="keywordflow">if</span> (<a class="code" href="pvm_8h.html#ab07d36b74da4d8af253921d13246b4c6">SP_START</a> + <a class="code" href="pvm_8h.html#ab54743bd28a2e3157970d2f5bd35a673">SP_INCR</a> &gt; MEMSIZE || <a class="code" href="pvm_8h.html#ab07d36b74da4d8af253921d13246b4c6">SP_START</a> + <a class="code" href="pvm_8h.html#ab54743bd28a2e3157970d2f5bd35a673">SP_INCR</a> &lt;= 0) {
<a name="l00023"></a>00023                 printf(<span class="stringliteral">&quot;L&#39;incrémentation de la pile n&#39;est pas correctement configurée&quot;</span>);
<a name="l00024"></a>00024         }
<a name="l00025"></a>00025         <span class="keywordflow">else</span> {
<a name="l00026"></a>00026 
<a name="l00027"></a>00027                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029                 <span class="comment">//Initialiser les registres</span>
<a name="l00030"></a>00030                 <span class="comment">//</span>
<a name="l00031"></a>00031                 <span class="keywordflow">for</span> (i= 0; i &lt; <a class="code" href="pvm_8h.html#aa5567626531b8873c1f7d93b4b7c5319">NREGS</a>; i++)
<a name="l00032"></a>00032                         newPVM-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[i] = 0;
<a name="l00033"></a>00033                 <span class="comment">//Initialiser les composantes brutes des mots de la mémoire</span>
<a name="l00034"></a>00034                 <span class="comment">//</span>
<a name="l00035"></a>00035                 for (i = 0; i &lt; <a class="code" href="pvm_8h.html#ad4661974a66daba2cf78a74dfbe67ebf">MEMSIZE</a>; i++)
<a name="l00036"></a>00036                         newPVM-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[i].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a> = 0;
<a name="l00037"></a>00037 
<a name="l00038"></a>00038                 printf(<span class="stringliteral">&quot;PVM correctement initialisée !\n&quot;</span>);
<a name="l00039"></a>00039         }
<a name="l00040"></a>00040 
<a name="l00041"></a>00041         <span class="keywordflow">return</span> <a class="code" href="pvm_8c.html#a1b0875fb61cdafebccde8bebcb6d8f0f">newPVM</a>;
<a name="l00042"></a>00042 }
<a name="l00043"></a>00043 
<a name="l00052"></a><a class="code" href="pvm_8h.html#a570d5566d9630e7cc1d6f082d19158f9">00052</a> <span class="keywordtype">bool</span> <a class="code" href="pvm_8c.html#a570d5566d9630e7cc1d6f082d19158f9">verifierAccesMemoire</a>(<a class="code" href="pvm_8h.html#a9e9b08bbbfb50d0535079872d3ed87c3">REG</a> *index){
<a name="l00053"></a>00053 
<a name="l00054"></a>00054         <span class="keywordflow">if</span> (*index &gt; <a class="code" href="pvm_8h.html#ad4661974a66daba2cf78a74dfbe67ebf">MEMSIZE</a>) {
<a name="l00055"></a>00055                 printf(<span class="stringliteral">&quot;Erreur de segmentation - tentative d&#39;accès à une mémoire non-autorisée&quot;</span>);
<a name="l00056"></a>00056                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00057"></a>00057         }
<a name="l00058"></a>00058         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060 
<a name="l00069"></a><a class="code" href="pvm_8h.html#ad502dfcafb18bb276a7fe701da1201e2">00069</a> <span class="keywordtype">bool</span> <a class="code" href="pvm_8c.html#ad502dfcafb18bb276a7fe701da1201e2">verifierAccesRegistre</a>(<a class="code" href="pvm_8h.html#a9e9b08bbbfb50d0535079872d3ed87c3">REG</a> index){
<a name="l00070"></a>00070 
<a name="l00071"></a>00071         <span class="keywordflow">if</span> (index &gt;= <a class="code" href="pvm_8h.html#aa5567626531b8873c1f7d93b4b7c5319">NREGS</a>) {
<a name="l00072"></a>00072                 printf(<span class="stringliteral">&quot;Erreur de segmentation - tentative d&#39;accès à un registre non disponible&quot;</span>);
<a name="l00073"></a>00073                 printf(<span class="stringliteral">&quot;\nNombre de registres disponibles : %d &quot;</span>, <a class="code" href="pvm_8h.html#aa5567626531b8873c1f7d93b4b7c5319">NREGS</a>);
<a name="l00074"></a>00074                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00075"></a>00075         }
<a name="l00076"></a>00076         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00077"></a>00077 }
<a name="l00078"></a>00078 
<a name="l00084"></a><a class="code" href="pvm_8h.html#ade2f21f7767ed25174ef94e84548edbe">00084</a> <span class="keywordtype">bool</span> <a class="code" href="pvm_8c.html#ade2f21f7767ed25174ef94e84548edbe">step</a>(<a class="code" href="struct_p_v_m.html">PVM</a> *pvm)
<a name="l00085"></a>00085 {
<a name="l00086"></a>00086 
<a name="l00087"></a>00087         <span class="comment">// Vérifier la disponibilité à l&#39;accès mémoire</span>
<a name="l00088"></a>00088         <span class="comment">//</span>
<a name="l00089"></a>00089         <span class="keywordflow">if</span>(!<a class="code" href="pvm_8c.html#a570d5566d9630e7cc1d6f082d19158f9">verifierAccesMemoire</a>(&amp;pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>))
<a name="l00090"></a>00090                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00091"></a>00091 
<a name="l00092"></a>00092         <span class="comment">// Récupérer le mot correspondant à la prochaine instruction à exécuter</span>
<a name="l00093"></a>00093         <span class="comment">//</span>
<a name="l00094"></a>00094         <a class="code" href="union_mot.html">Mot</a> *m = &amp;pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>];
<a name="l00095"></a>00095 
<a name="l00096"></a>00096         <span class="comment">// Arrêter la machine virtuelle dans le cas de rencontre d&#39;un &quot;HALT&quot;</span>
<a name="l00097"></a>00097         <span class="comment">//</span>
<a name="l00098"></a>00098         <span class="keywordflow">if</span> (m-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a714efb2f738953c61ec3e11c82a0e5b6">codeop</a> == <a class="code" href="pvm_8h.html#a7e52f419c66934d2886b2abb42b69994aa2fd6bbb0c07e28e835ba595e64df78c">HALT</a>) {
<a name="l00099"></a>00099                 printf(<span class="stringliteral">&quot;Instruction HALT rencontrée.\nArrêt de la machine virtuelle&quot;</span>);
<a name="l00100"></a>00100                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00101"></a>00101         }
<a name="l00102"></a>00102 
<a name="l00103"></a>00103         <span class="comment">// Exécuter l&#39;instruction cible</span>
<a name="l00104"></a>00104         <span class="comment">//</span>
<a name="l00105"></a>00105         <span class="keywordflow">if</span>(!<a class="code" href="pvm_8c.html#a469c59f8913112af68e8fc60be471387">exec</a>(pvm, m))
<a name="l00106"></a>00106                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00107"></a>00107 
<a name="l00108"></a>00108         <span class="comment">// Se déplacer vers la prochaine instruction</span>
<a name="l00109"></a>00109         <span class="comment">//</span>
<a name="l00110"></a>00110         pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>++;
<a name="l00111"></a>00111 
<a name="l00112"></a>00112         <span class="comment">// Afficher l&#39;état des registres</span>
<a name="l00113"></a>00113         <span class="comment">//</span>
<a name="l00114"></a>00114         printf(<span class="stringliteral">&quot;########### Etat des registres : ###########\n&quot;</span>);
<a name="l00115"></a>00115         <a class="code" href="pvm_8c.html#af72bc375e15fe8842a5248b6d27df50d">pvm_status</a>(pvm);
<a name="l00116"></a>00116 
<a name="l00117"></a>00117 
<a name="l00118"></a>00118         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00119"></a>00119 }
<a name="l00120"></a>00120 
<a name="l00130"></a><a class="code" href="pvm_8c.html#a4453c50e58d60e45e8dda31cf82c1c3c">00130</a> <span class="keywordtype">void</span> <a class="code" href="pvm_8c.html#a4453c50e58d60e45e8dda31cf82c1c3c">getModes</a>(<a class="code" href="union_mot.html">Mot</a> *mot, <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167">mode</a> *destination, <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167">mode</a> *source)
<a name="l00131"></a>00131 {
<a name="l00132"></a>00132         <span class="keywordflow">switch</span> (mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a79f1aed8545a4399ce7dbcbe5d0a38f5">mode</a>) {
<a name="l00133"></a>00133         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a198cfd606bf32e626d44ba6fcb316fd8">REGREG</a>:
<a name="l00134"></a>00134                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>;
<a name="l00135"></a>00135                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>;
<a name="l00136"></a>00136                 <span class="keywordflow">break</span>;
<a name="l00137"></a>00137         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167ae5ce061f1604594cbe0ef165fbf366ea">REGIMM</a>:
<a name="l00138"></a>00138                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>;
<a name="l00139"></a>00139                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a9b293fee8577ffd6e0e44036b9a47dea">IMMEDIATE</a>;
<a name="l00140"></a>00140                 <span class="keywordflow">break</span>;
<a name="l00141"></a>00141         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a03543875c2e4474135329136294fded0">REGDIR</a>:
<a name="l00142"></a>00142                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>;
<a name="l00143"></a>00143                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a1ea328a644e627283a35716a54108248">DIRECT</a>;
<a name="l00144"></a>00144                 <span class="keywordflow">break</span>;
<a name="l00145"></a>00145         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a17a6bcb55ba200e13bfbed5c6d38d729">REGIND</a>:
<a name="l00146"></a>00146                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>;
<a name="l00147"></a>00147                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aa70fc5026d3a310a836fa57ac51d8a4e">INDIRECT</a>;
<a name="l00148"></a>00148                 <span class="keywordflow">break</span>;
<a name="l00149"></a>00149         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a49637b554b892949d363567799e84cd5">DIRIMM</a>:
<a name="l00150"></a>00150                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a1ea328a644e627283a35716a54108248">DIRECT</a>;
<a name="l00151"></a>00151                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a9b293fee8577ffd6e0e44036b9a47dea">IMMEDIATE</a>;
<a name="l00152"></a>00152                 <span class="keywordflow">break</span>;
<a name="l00153"></a>00153         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a9e940aaba5ed13f915b6cc12ae4ac64c">DIRREG</a>:
<a name="l00154"></a>00154                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a1ea328a644e627283a35716a54108248">DIRECT</a>;
<a name="l00155"></a>00155                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>;
<a name="l00156"></a>00156                 <span class="keywordflow">break</span>;
<a name="l00157"></a>00157         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167abad88748832cf67d4c967116c38536f4">INDIMM</a>:
<a name="l00158"></a>00158                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aa70fc5026d3a310a836fa57ac51d8a4e">INDIRECT</a>;
<a name="l00159"></a>00159                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a9b293fee8577ffd6e0e44036b9a47dea">IMMEDIATE</a>;
<a name="l00160"></a>00160                 <span class="keywordflow">break</span>;
<a name="l00161"></a>00161         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a3904cbf8001c1a38f0423cdab326a6a3">INDREG</a>:
<a name="l00162"></a>00162                 *destination = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aa70fc5026d3a310a836fa57ac51d8a4e">INDIRECT</a>;
<a name="l00163"></a>00163                 *source = <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>;
<a name="l00164"></a>00164                 <span class="keywordflow">break</span>;
<a name="l00165"></a>00165         <span class="keywordflow">default</span>:
<a name="l00166"></a>00166                 printf(<span class="stringliteral">&quot;Mode d&#39;adressage invalide&quot;</span>);
<a name="l00167"></a>00167         }
<a name="l00168"></a>00168 }
<a name="l00169"></a>00169 
<a name="l00179"></a><a class="code" href="pvm_8h.html#a31f021572b5c8a91ed6f543da5508b4f">00179</a> <a class="code" href="union_mot.html">Mot</a> <a class="code" href="pvm_8c.html#a31f021572b5c8a91ed6f543da5508b4f">getSource</a>(<a class="code" href="struct_p_v_m.html">PVM</a> *pvm, <a class="code" href="union_mot.html">Mot</a> *mot)
<a name="l00180"></a>00180 {
<a name="l00181"></a>00181         <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167">mode</a> destination, source;
<a name="l00182"></a>00182 
<a name="l00183"></a>00183         <span class="comment">// Décortiquer le mot et obtenir pour obtenir les modes d&#39;adressage répartis</span>
<a name="l00184"></a>00184         <span class="comment">//</span>
<a name="l00185"></a>00185         <a class="code" href="pvm_8c.html#a4453c50e58d60e45e8dda31cf82c1c3c">getModes</a>(mot, &amp;destination, &amp;source);
<a name="l00186"></a>00186 
<a name="l00187"></a>00187         <span class="comment">// Traiter les actions de manière séparée</span>
<a name="l00188"></a>00188         <span class="comment">//</span>
<a name="l00189"></a>00189         <span class="keywordflow">switch</span> (source) {
<a name="l00190"></a>00190         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>:
<a name="l00191"></a>00191                 <span class="comment">// Simuler l&#39;accès en mémoire du registre selectionné</span>
<a name="l00192"></a>00192                 <span class="comment">//</span>
<a name="l00193"></a>00193                 <span class="keywordflow">if</span> (!<a class="code" href="pvm_8c.html#ad502dfcafb18bb276a7fe701da1201e2">verifierAccesRegistre</a>(mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a8cc654c8b1f1628a5b32821309615135">dest</a>))
<a name="l00194"></a>00194                         <span class="keywordflow">return</span> (<a class="code" href="union_mot.html">Mot</a>) {.codage = { <a class="code" href="pvm_8h.html#a7e52f419c66934d2886b2abb42b69994aa2fd6bbb0c07e28e835ba595e64df78c">HALT</a> }};
<a name="l00195"></a>00195                 <span class="keywordflow">else</span>
<a name="l00196"></a>00196                         <span class="keywordflow">return</span> (<a class="code" href="union_mot.html">Mot</a>) pvm-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a66846948c4421f1ab4bddc78b0a2e41f">source</a>];
<a name="l00197"></a>00197                 <span class="keywordflow">break</span>;
<a name="l00198"></a>00198         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a9b293fee8577ffd6e0e44036b9a47dea">IMMEDIATE</a>:
<a name="l00199"></a>00199                 pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>++;
<a name="l00200"></a>00200                 <span class="comment">// Récupérer la valeur à l&#39;adresse de la valeur du PC</span>
<a name="l00201"></a>00201                 <span class="comment">//</span>
<a name="l00202"></a>00202                 <span class="keywordflow">return</span> pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>];
<a name="l00203"></a>00203                 <span class="keywordflow">break</span>;
<a name="l00204"></a>00204         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a1ea328a644e627283a35716a54108248">DIRECT</a>:
<a name="l00205"></a>00205                 pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>++;
<a name="l00206"></a>00206                 <span class="keywordflow">if</span>(!<a class="code" href="pvm_8c.html#a570d5566d9630e7cc1d6f082d19158f9">verifierAccesMemoire</a>(&amp;pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>))
<a name="l00207"></a>00207                         <span class="keywordflow">return</span> (<a class="code" href="union_mot.html">Mot</a>) {.codage = { <a class="code" href="pvm_8h.html#a7e52f419c66934d2886b2abb42b69994aa2fd6bbb0c07e28e835ba595e64df78c">HALT</a> }};
<a name="l00208"></a>00208                 <span class="keywordflow">else</span>
<a name="l00209"></a>00209                         <span class="comment">// Récupérer l&#39;opérande située dans l&#39;adresse mémoire</span>
<a name="l00210"></a>00210                         <span class="comment">//</span>
<a name="l00211"></a>00211                         <span class="keywordflow">return</span> (<a class="code" href="union_mot.html">Mot</a>) pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>;
<a name="l00212"></a>00212                 <span class="keywordflow">break</span>;
<a name="l00213"></a>00213         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aa70fc5026d3a310a836fa57ac51d8a4e">INDIRECT</a>:
<a name="l00214"></a>00214                 <span class="comment">// Récupérer l&#39;opérande située dans l&#39;adresse mémoire contenue par le registre</span>
<a name="l00215"></a>00215                 <span class="comment">//</span>
<a name="l00216"></a>00216                 <span class="keywordflow">if</span>(!<a class="code" href="pvm_8c.html#a570d5566d9630e7cc1d6f082d19158f9">verifierAccesMemoire</a>(&amp;pvm-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a8cc654c8b1f1628a5b32821309615135">dest</a>]))
<a name="l00217"></a>00217                         <span class="keywordflow">return</span> (<a class="code" href="union_mot.html">Mot</a>) {.codage = { <a class="code" href="pvm_8h.html#a7e52f419c66934d2886b2abb42b69994aa2fd6bbb0c07e28e835ba595e64df78c">HALT</a> }};
<a name="l00218"></a>00218                 <span class="keywordflow">else</span>
<a name="l00219"></a>00219                         <span class="keywordflow">return</span> pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a66846948c4421f1ab4bddc78b0a2e41f">source</a>]];
<a name="l00220"></a>00220                 <span class="keywordflow">break</span>;
<a name="l00221"></a>00221         <span class="keywordflow">default</span>:
<a name="l00222"></a>00222                 <span class="comment">// Traiter le cas d&#39;un mode d&#39;adressage invalide</span>
<a name="l00223"></a>00223                 <span class="comment">// Arrêter le programme</span>
<a name="l00224"></a>00224                 <span class="comment">//</span>
<a name="l00225"></a>00225                 printf(<span class="stringliteral">&quot;Mode d&#39;adressage source invalide&quot;</span>);
<a name="l00226"></a>00226                 <span class="keywordflow">return</span> (<a class="code" href="union_mot.html">Mot</a>) {.codage = { <a class="code" href="pvm_8h.html#a7e52f419c66934d2886b2abb42b69994aa2fd6bbb0c07e28e835ba595e64df78c">HALT</a> }};
<a name="l00227"></a>00227         }
<a name="l00228"></a>00228 }
<a name="l00229"></a>00229 
<a name="l00239"></a><a class="code" href="pvm_8h.html#abca92188e0832f863a6aae27e2c22f33">00239</a> <a class="code" href="pvm_8h.html#a9e9b08bbbfb50d0535079872d3ed87c3">REG</a>* <a class="code" href="pvm_8c.html#abca92188e0832f863a6aae27e2c22f33">getDestination</a>(<a class="code" href="struct_p_v_m.html">PVM</a> *pvm, <a class="code" href="union_mot.html">Mot</a> *mot)
<a name="l00240"></a>00240 {
<a name="l00241"></a>00241         <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167">mode</a> destination, source;
<a name="l00242"></a>00242 
<a name="l00243"></a>00243         <span class="comment">// Décortiquer le mot et obtenir pour obtenir les modes d&#39;adressage répartis</span>
<a name="l00244"></a>00244         <span class="comment">//</span>
<a name="l00245"></a>00245         <a class="code" href="pvm_8c.html#a4453c50e58d60e45e8dda31cf82c1c3c">getModes</a>(mot, &amp;destination, &amp;source);
<a name="l00246"></a>00246 
<a name="l00247"></a>00247         <span class="keywordflow">switch</span> (destination) {
<a name="l00248"></a>00248         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aceb7c305772dab23a260960771180df3">REGISTER</a>:
<a name="l00249"></a>00249                 <span class="keywordflow">if</span>(!<a class="code" href="pvm_8c.html#ad502dfcafb18bb276a7fe701da1201e2">verifierAccesRegistre</a>(mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a8cc654c8b1f1628a5b32821309615135">dest</a>))
<a name="l00250"></a>00250                         <span class="keywordflow">return</span> NULL;
<a name="l00251"></a>00251                 <span class="keywordflow">else</span>
<a name="l00252"></a>00252                         <span class="keywordflow">return</span> &amp;pvm-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a8cc654c8b1f1628a5b32821309615135">dest</a>];
<a name="l00253"></a>00253                 <span class="keywordflow">break</span>;
<a name="l00254"></a>00254         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a9b293fee8577ffd6e0e44036b9a47dea">IMMEDIATE</a>:
<a name="l00255"></a>00255                 printf(<span class="stringliteral">&quot;Mode d&#39;adressage destination invalide&quot;</span>);
<a name="l00256"></a>00256                 <span class="keywordflow">return</span> NULL;
<a name="l00257"></a>00257                 <span class="keywordflow">break</span>;
<a name="l00258"></a>00258         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167a1ea328a644e627283a35716a54108248">DIRECT</a>:
<a name="l00259"></a>00259                 pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>++;
<a name="l00260"></a>00260                 <span class="keywordflow">if</span>(!<a class="code" href="pvm_8c.html#a570d5566d9630e7cc1d6f082d19158f9">verifierAccesMemoire</a>(&amp;pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>))
<a name="l00261"></a>00261                         <span class="keywordflow">return</span> NULL;
<a name="l00262"></a>00262                 <span class="keywordflow">else</span>
<a name="l00263"></a>00263                         <span class="keywordflow">return</span> &amp;(pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>);
<a name="l00264"></a>00264                 <span class="keywordflow">break</span>;
<a name="l00265"></a>00265         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a1a6b6fb557d8d37d59700faf4e4c9167aa70fc5026d3a310a836fa57ac51d8a4e">INDIRECT</a>:
<a name="l00266"></a>00266                 <span class="keywordflow">if</span>(!<a class="code" href="pvm_8c.html#a570d5566d9630e7cc1d6f082d19158f9">verifierAccesMemoire</a>(&amp;pvm-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a8cc654c8b1f1628a5b32821309615135">dest</a>]))
<a name="l00267"></a>00267                         <span class="keywordflow">return</span> NULL;
<a name="l00268"></a>00268                 <span class="keywordflow">else</span>
<a name="l00269"></a>00269                         <span class="keywordflow">return</span> &amp;(pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[pvm-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[mot-&gt;<a class="code" href="union_mot.html#a086679e3803f06fa3a2261ef75479833">codage</a>.<a class="code" href="union_mot.html#a8cc654c8b1f1628a5b32821309615135">dest</a>]].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>);
<a name="l00270"></a>00270                 <span class="keywordflow">break</span>;
<a name="l00271"></a>00271         <span class="keywordflow">default</span>:
<a name="l00272"></a>00272                 printf(<span class="stringliteral">&quot;Mode d&#39;adressage destination invalide&quot;</span>);
<a name="l00273"></a>00273                 <span class="keywordflow">return</span> NULL;
<a name="l00274"></a>00274         }
<a name="l00275"></a>00275 }
<a name="l00276"></a>00276 
<a name="l00286"></a><a class="code" href="pvm_8h.html#a469c59f8913112af68e8fc60be471387">00286</a> <span class="keywordtype">bool</span> <a class="code" href="pvm_8c.html#a469c59f8913112af68e8fc60be471387">exec</a>(<a class="code" href="struct_p_v_m.html">PVM</a> *pvm, <a class="code" href="union_mot.html">Mot</a> *mot)
<a name="l00287"></a>00287 {
<a name="l00288"></a>00288         <span class="comment">// Récupérer l&#39;instruction courante</span>
<a name="l00289"></a>00289         <span class="comment">//</span>
<a name="l00290"></a>00290         <a class="code" href="struct_instruction.html">Instruction</a> instruction = <a class="code" href="instructions_8c.html#a8928bbf55f0640dc8aab155599552272">getInstruction</a>(*mot);
<a name="l00291"></a>00291 
<a name="l00292"></a>00292         <span class="comment">// Récupérer les composantes sources</span>
<a name="l00293"></a>00293         <span class="comment">//</span>
<a name="l00294"></a>00294         <a class="code" href="union_mot.html">Mot</a> source = <a class="code" href="pvm_8c.html#a31f021572b5c8a91ed6f543da5508b4f">getSource</a>(pvm, mot);
<a name="l00295"></a>00295 
<a name="l00296"></a>00296         <span class="comment">// Récupérer les composantes destinations</span>
<a name="l00297"></a>00297         <span class="comment">//</span>
<a name="l00298"></a>00298         <a class="code" href="pvm_8h.html#a9e9b08bbbfb50d0535079872d3ed87c3">REG</a> *dest = <a class="code" href="pvm_8c.html#abca92188e0832f863a6aae27e2c22f33">getDestination</a>(pvm, mot);
<a name="l00299"></a>00299 
<a name="l00300"></a>00300         <span class="comment">// Associer la bonne fonction par pointage pour effectuer le traitement</span>
<a name="l00301"></a>00301         <span class="comment">//</span>
<a name="l00302"></a>00302         <span class="keywordflow">if</span> ((*(instruction.<a class="code" href="struct_instruction.html#a95b612738996bc69576986796f79360b">fonction</a>))(pvm, dest, source)) {
<a name="l00303"></a>00303                 printf(<span class="stringliteral">&quot;Instruction successful\n&quot;</span>);
<a name="l00304"></a>00304                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00305"></a>00305         } <span class="keywordflow">else</span> {
<a name="l00306"></a>00306                 printf(<span class="stringliteral">&quot;Instruction unsuccessful\n&quot;</span>);
<a name="l00307"></a>00307                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00308"></a>00308         }
<a name="l00309"></a>00309 }
<a name="l00310"></a>00310 
<a name="l00315"></a><a class="code" href="pvm_8h.html#af72bc375e15fe8842a5248b6d27df50d">00315</a> <span class="keywordtype">void</span> <a class="code" href="pvm_8c.html#af72bc375e15fe8842a5248b6d27df50d">pvm_status</a>(<a class="code" href="struct_p_v_m.html">PVM</a> *pvm)
<a name="l00316"></a>00316 {
<a name="l00317"></a>00317         <a class="code" href="pvm_8c.html#ad3f42f9d68120aa16e866231bb51a87d">pvm_print_registre</a>(pvm, <a class="code" href="pvm_8h.html#a600721f0222b857dc8a3ae59e5077347">PC</a>);
<a name="l00318"></a>00318         <a class="code" href="pvm_8c.html#ad3f42f9d68120aa16e866231bb51a87d">pvm_print_registre</a>(pvm, <a class="code" href="pvm_8h.html#abaed93a16a0cde13f32bc4dc48b96804">SR</a>);
<a name="l00319"></a>00319         <a class="code" href="pvm_8c.html#ad3f42f9d68120aa16e866231bb51a87d">pvm_print_registre</a>(pvm, <a class="code" href="pvm_8h.html#aecd69d9a67487cc45c38eb184c50538a">SP</a>);
<a name="l00320"></a>00320         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0;
<a name="l00321"></a>00321         <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="pvm_8h.html#aa5567626531b8873c1f7d93b4b7c5319">NREGS</a>; ++i)
<a name="l00322"></a>00322                 <a class="code" href="pvm_8c.html#ad3f42f9d68120aa16e866231bb51a87d">pvm_print_registre</a>(pvm, i);
<a name="l00323"></a>00323 }
<a name="l00324"></a>00324 
<a name="l00332"></a><a class="code" href="pvm_8h.html#aca111e7fbca1d5ece630ac77fa7f6007">00332</a> <span class="keywordtype">bool</span> <a class="code" href="pvm_8c.html#aca111e7fbca1d5ece630ac77fa7f6007">pvm_print_memoire</a>(<a class="code" href="struct_p_v_m.html">PVM</a> *pvm, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mem)
<a name="l00333"></a>00333 {
<a name="l00334"></a>00334         <span class="keywordflow">if</span> (mem &gt;= <a class="code" href="pvm_8h.html#ad4661974a66daba2cf78a74dfbe67ebf">MEMSIZE</a>) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00335"></a>00335         printf(<span class="stringliteral">&quot;MEM[%d] = %d\n&quot;</span>, mem, pvm-&gt;<a class="code" href="struct_p_v_m.html#a90409607a9d10e5fe64eeb9e187dccaa">mem</a>[mem].<a class="code" href="union_mot.html#a0414480f7d1e00c252db4cb3501201e6">brut</a>);
<a name="l00336"></a>00336         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00337"></a>00337 }
<a name="l00338"></a>00338 
<a name="l00346"></a><a class="code" href="pvm_8h.html#ad3f42f9d68120aa16e866231bb51a87d">00346</a> <span class="keywordtype">bool</span> <a class="code" href="pvm_8c.html#ad3f42f9d68120aa16e866231bb51a87d">pvm_print_registre</a>(<a class="code" href="struct_p_v_m.html">PVM</a> *pvm, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reg)
<a name="l00347"></a>00347 {
<a name="l00348"></a>00348         <span class="keywordflow">switch</span> (reg) {
<a name="l00349"></a>00349         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#a600721f0222b857dc8a3ae59e5077347">PC</a>:
<a name="l00350"></a>00350                 printf(<span class="stringliteral">&quot;PC = %d\n&quot;</span>, pvm-&gt;<a class="code" href="struct_p_v_m.html#a86b158606e5e1308f972b34b071fc754">pc</a>);
<a name="l00351"></a>00351                 <span class="keywordflow">break</span>;
<a name="l00352"></a>00352         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#abaed93a16a0cde13f32bc4dc48b96804">SR</a>:
<a name="l00353"></a>00353                 printf(<span class="stringliteral">&quot;SR = %d\n&quot;</span>, pvm-&gt;<a class="code" href="struct_p_v_m.html#a4b94d3b0c007f78c25c791e6b506307c">sr</a>);
<a name="l00354"></a>00354                 <span class="keywordflow">break</span>;
<a name="l00355"></a>00355         <span class="keywordflow">case</span> <a class="code" href="pvm_8h.html#aecd69d9a67487cc45c38eb184c50538a">SP</a>:
<a name="l00356"></a>00356                 printf(<span class="stringliteral">&quot;SP = %d\n&quot;</span>, pvm-&gt;<a class="code" href="struct_p_v_m.html#a8eed1a2f252c69524a03e13d47bdd7ea">sp</a>);
<a name="l00357"></a>00357                 <span class="keywordflow">break</span>;
<a name="l00358"></a>00358         <span class="keywordflow">default</span>:
<a name="l00359"></a>00359                 <span class="keywordflow">if</span> (reg &lt; <a class="code" href="pvm_8h.html#aa5567626531b8873c1f7d93b4b7c5319">NREGS</a>) {
<a name="l00360"></a>00360                         printf(<span class="stringliteral">&quot;R%d = %d\n&quot;</span>, reg, pvm-&gt;<a class="code" href="struct_p_v_m.html#a7d56b6424277070bd8b03400125dc04a">reg</a>[reg]);
<a name="l00361"></a>00361                 }
<a name="l00362"></a>00362                 <span class="keywordflow">else</span> {
<a name="l00363"></a>00363                         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00364"></a>00364                 }
<a name="l00365"></a>00365                 <span class="keywordflow">break</span>;
<a name="l00366"></a>00366         }
<a name="l00367"></a>00367         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00368"></a>00368 }
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Sat Dec 31 2011 13:00:38 pour Emulateur PROCSI par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
